<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="path" value="${pageContext.request.contextPath }"></c:set>
<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>RADAR-策略管理</title>

	<link href="${path }/css/style.css" rel="stylesheet" type="text/css">
    <link href="${path }/radar/strategy/strategyControl.css" rel="stylesheet" type="text/css"/>
    <link href="${path }/common/plugins/icons.css" rel="stylesheet" type="text/css">  
    <link href="${path }/common/plugins/font-awesome.css" rel="stylesheet" type="text/css">

    <link href="${path }/common/plugins/ui/plugins.css" rel="stylesheet" type="text/css">
    
    <link href="${path}/common/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">

<!--内部样式引用-->
<%-- <link rel="stylesheet" type="text/css" href="${path}/hhm/strategy/css/in-side.css" /> --%>
<!--基本支持性脚本-->
    <link href="${path }/common/plugins/zTree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" type="text/css">
    <link href="${path }/common/plugins/MyDate97/skin/WdatePicker.css" rel="stylesheet" type="text/css">
    <script src="${path }/js/jquery-1.7.2.min.js" type="text/javascript"></script>
	<script src="${path }/common/plugins/MyDate97/WdatePicker.js" type="text/javascript"></script>
    <script src="${path }/common/plugins/bootstrap/js/bootstrap.js" type="text/javascript"></script>
    <script src="${path }/common/plugins/zTree/jquery.ztree.all-3.5.min.js" type="text/javascript"></script>
    <script src="${path }/common/plugins/layer/layer.js" type="text/javascript"></script>
    <script src="${path }/js/user_js.js" type="text/javascript"></script>
    <script src="${path}/js/common.js" type="text/javascript" type="text/javascript"></script>	
	<script src='${path}/radar/strategy/strategyManager.js' type="text/javascript"></script>

</head>            <!--后台数据块  -->
   <script type="text/javascript">
	var basePath="${path }" ;
	var strategyTree=${strategyTree } ;
   </script>
<body>

<div class="content">
    <div class="content_details">
    	<div class="content_l span2">
            <div style="height:100%!important;overflow: hidden">
                <div class="control-title">
                    <i class="business content_current"></i><span>策略维护</span>
                    <div class="spanbtn">
	                    <button class="press_btn1 btntoggle" id="addPolicy"><i class="more top_current"></i><span class="text_normal">添加</span></button>
	                </div>
                </div>
                <div class="well" style="height:80%;overflow: auto">
                    <!--树div-->
                    <ul id="treeWay" class="ztree"></ul>
                </div>
            </div>
        </div>
         <div class="content_r span10">
            <ul class="nav nav-tabs" id="tab">
                <li class="active"><a href="#manage" id="planTimeTab" data-toggle="tab">计划时间</a></li>
                <li><a href="#property" id="planEquipTab" data-toggle="tab">绑定设备</a></li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="manage">
                    <div>
                        <div class="control-title">
                            <i class="list content_current"></i><span>计划列表</span>
                             <div class="spanbtn">
                            <button class="press_btn1" id="addPlan"><i class="add top_current"></i>添加</button>
                             </div>
                        </div>
                        <div class="content_table" id="plan">
                            
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="property">
                    <div class="control-title">
                        <i class="list content_current"></i><span>设备列表</span>
                        <div class="spanbtn">
                            <button class="press_btn1" id="addEqurpment"><i class="add top_current"></i>添加</button>
                            <button class="press_btn2" onclick="deleteStrategyBundEquip();"><i class="del top_current"></i>删除</button>
                            <button class="press_btn3" onclick="appAllStrategy();"><i class="doc top_current"></i>执行全部未应用策略</button>
                        </div>
                    </div>
                    <div class="content_condition">
                        <div class="last_group">
                        <!--     <div class="span4">
                                <label class="control-label">设备筛选:</label>
                                <div class="controls">
                                    <input type="text" name="regular" id="treeSelect" readonly onclick="showMenu()"/>
                                    <input type="hidden" id="ciTypeIds"/>
                                    <div class="selectList" onclick="showMenu()"></div>
                                </div>
                            </div> -->
                            <div class="span4">
                                <label class="control-label">名称:</label>
                                <div class="controls">
                                    <input id="resourceName" type="text"/>
                                </div>
                            </div>
                            <div class="spanbtn">
                                <button class="press_btn1" onclick = "queryEquipment();"><i class="search top_current"></i>查询</button>
                            </div>
                        </div>
                    </div>
                  <!--  设备div -->
                    <div class="content_table" id="equipment">
                        
                        
                    </div>
                </div>
    
            </div>
        </div>
    
    </div>
</div>
<!--选择 悬浮树   设备筛选ztree-->
<div id="menuContent" class="menuContent" style="display:none; position: absolute;">
	<ul id="treeEquipmentType" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
</div>
<div id="menuContentDataBase" class="menuContent" style="display:none; position: absolute;">
	<ul id="treeDataBasementType" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
</div>
<div id="menuContentNetWork" class="menuContent" style="display:none; position: absolute;">
	<ul id="treeNetWorkType" class="ztree" style="margin-top:0; width:180px; height: 300px;"></ul>
</div>
<div id="rMenu">
	<ul>
		<li id="m_add" onclick="addTreeNode();">增加</li>
		<!-- <li id="m_copy" onclick="copyTree();">复制</li> -->
		<li id="m_eidt" onclick="eidtTree();">重命名</li>
		<li id="m_del" onclick="removeTreeNode();">删除</li>
	</ul>
</div>
</body>
</html>
